package com.examples.tools;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class ConfigurationManager {

	private static final String APP_CONF_FILE = "app.conf";
	private static final Properties properties = new Properties();

	static {
		try {
			properties.loadFromXML(new FileInputStream(new File(APP_CONF_FILE)));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static String getValue(String key) {
		return properties.getProperty(key, "unknow");
	}

}
